<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>city in eyes</title>
<link rel="stylesheet" href="static/css/style.css">
<script type="text/javascript" src="js/iscroll.js"></script>
<script type="text/javascript">

var myScroll;
function loaded() {
	myScroll = new iScroll('wrapper');
}

document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);

/* * * * * * * *
 *
 * Use this for high compatibility (iDevice + Android)
 *
 */
document.addEventListener('DOMContentLoaded', setTimeout(function () { loaded(); }, 200), false);
/*
 * * * * * * * */


/* * * * * * * *
 *
 * Use this for iDevice only
 *
 */
//document.addEventListener('DOMContentLoaded', loaded, false);
/*
 * * * * * * * */


/* * * * * * * *
 *
 * Use this if nothing else works
 *
 */
//window.addEventListener('load', setTimeout(function () { loaded(); }, 200), false);
/*
 * * * * * * * */

</script>
</head>

<body>

<jsp:include page="top.jsp"></jsp:include>

<div id="wrapper">
  <div id="scroller">
    <form class="upload_from" action="" method="post" enctype="multipart/form-data">
      <p>
        <label>标题</label>
        <input type="text">
      </p>
      <p>
        <label>位置</label>
        <input type="text">
      </p>
      <p>
        <label>类型</label>
        <input type="text">
      </p>
      <p>
        <label>相片</label>
        <input type="file">
      </p>
      <p>
        <label>简介</label>
        <textarea></textarea>
      </p>
      <p>
        <button type="submit">提交城市数据</button>
      </p>
    </form>
  </div>
</div>
<div id="footer" class="footer">CityOnEyes 城市天眼 © 2011 LEG inc. 版权所有<br>
  粤ICP备07500583号-11</div>
</body>
</html>
